package ch02;

/**
 * @author zhu
 * @date 2024-03-29
 */
public class MainTest01<T> {
    public T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public T getNew(Class<T> obj) throws Exception {
        return obj.getConstructor().newInstance();
    }
}
